package com.runen.wnhz.runen.common.login.entity;

/**
 * 描述：
 * 作者： 天天童话丶
 * 时间： 2018/5/14.
 */

public class LoginInfo implements Cloneable {

    private String type;

    // 普通登录返回
    private String token;
    private String username;
    private String head_img;
    private String login_type;

    // 三方登录返回
    private String openid;
    private String imgurl;
    private String nickname;

    public String getToken() {
        return token;
    }

    public String getUsername() {
        return username;
    }

    public String getHead_img() {
        return head_img;
    }

    public String getLogin_type() {
        return login_type;
    }

    public String getType() {
        return type;
    }

    public String getOpenid() {
        return openid;
    }

    public String getImgurl() {
        return imgurl;
    }

    public String getNickname() {
        return nickname;
    }

    @Override
    public LoginInfo clone() {
        LoginInfo info = null;
        try{
            info = (LoginInfo) super.clone();
        } catch (CloneNotSupportedException e){
            e.printStackTrace();
        }
        return info;
    }

    @Override
    public String toString() {
        return "LoginInfo{" +
                "token='" + token + '\'' +
                ", username='" + username + '\'' +
                ", head_img='" + head_img + '\'' +
                ", login_type='" + login_type + '\'' +
                ", type='" + type + '\'' +
                ", openid='" + openid + '\'' +
                ", imgurl='" + imgurl + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
